<script type="text/javascript">
$(document).ready(function(){

	$("#afb").click(function(event){
		event.preventDefault();
		loadView("/admin/activeaddindexpagebox", $('#contentwidgetform'), function(){
			prepareInputsForHints();
		});
		$("#headergreybox").html("<?= $this->translate('addbox')?>");
	});

	loadView("/admin/manageindexpagebox", $('#contentwidgetform'), null);
	
});
</script>

<!--###Blocco Centrale###-->
    <div id="content">
        <div id="columns">    
            <ul id="column1Home" class="column">
                <li class="widget color-myOrange" id="intro">
                    <div class="widget-head">
                        <h3><?= $this->translate('manageIndex')?></h3>
                    </div>
                    <div class="widget-contentHome">
                        <ul class="navigationsubmenu">
                            <li>
                                <a id="afb" href="#"><?= $this->translate('addBox')?></a>
                            </li>
                        </ul>
                    </div>
                </li>
            </ul>
            <ul id="column2Home" class="column">
                <li class="widget color-myGrey">  
                    <div class="widget-head">
                        <h3 id="headergreybox"><?= $this->translate('boxHistory')?></h3>
                    </div>
                    <div class="widget-contentHome">
                        <div id="contentwidgetform" class="contentWidgetForm">
                            <!-- inserimento dei form tramite ajax -->
                        </div>
                    </div>
                </li>
            </ul>
            <div style="clear: both;"></div>
        </div>
    </div><!--contentCenter-->